	    </div> <!-- end for MainBody -->
		<div class="LeftContent">
			<p><strong>Navigation tree</strong> </p>
			<ul id="navigation">
				<li><a href="?option=<?php echo COMPONENT_NAME;?>&page=bookings"><img src="<?php echo COMPONENT_PATH."images/bookings.gif"; ?>" /> Reservations</a></li>
				<li><a href="?option=<?php echo COMPONENT_NAME;?>&page=customers"><img src="<?php echo COMPONENT_PATH."images/allcustomers_icon.gif"; ?>" /> Customers</a>
					<ul>
						<li><a href="?option=<?php echo COMPONENT_NAME;?>&page=customers&group=all"><img src="<?php echo COMPONENT_PATH."images/allcustomers_icon.gif"; ?>" /> All</a></li>
						<li><a href="?option=<?php echo COMPONENT_NAME;?>&page=customers&group=guests"><img src="<?php echo COMPONENT_PATH."images/customers_icon.gif"; ?>" /> Guests</a></li>
						<li><a href="?option=<?php echo COMPONENT_NAME;?>&page=customers&group=managers"><img src="<?php echo COMPONENT_PATH."images/manager.gif"; ?>" /> Managers</a></li>
					</ul>
				</li>
				<li><a href="?option=<?php echo COMPONENT_NAME;?>&page=units"><img src="<?php echo COMPONENT_PATH."images/folderopen.gif"; ?>" /> Units</a>
					<ul>
						<?php if(!empty($managers)){?>
						  <?php foreach($managers as $key=>$manager){?>
						<li id="li" class="closed"><a href="?option=<?php echo COMPONENT_NAME;?>&page=managers&id=<?php echo $manager->id;?>"><img src="<?php echo COMPONENT_PATH."images/manager.gif"; ?>" /> <?php echo $manager->title. " ". $manager->firstname. " " .$manager->surname;?></a>
							<?php if($units[$key]){?>
							<ul id="ul">
								<?php foreach ($units[$key] as $unit){?>
								<li id="ul-li">
									<a href="?option=<?php echo COMPONENT_NAME;?>&page=units&action=edit&uid=<?php echo $unit->id;?>">
										<?php if($unit->is_hotel == "1"){?>
											<img src="<?php echo COMPONENT_PATH."images/hotel.png"; ?>" />
										<?php }else if($unit->is_group == "1"){?>
											<img src="<?php echo COMPONENT_PATH."images/units_group.gif"; ?>" />
										<?php }else{?>
											<img src="<?php echo COMPONENT_PATH."images/units.gif"; ?>" />
										<?php } echo $unit->address. " <b>(ID: $unit->id)</b>";?>
									</a>
								</li>
								<?php }?>
							</ul>
							<?php }?>
						  <?php }?>
						<?php }?>
						</li>
					</ul>
				</li>
				<li><img src="<?php echo COMPONENT_PATH."images/misc.gif"; ?>" /> Misc
					<ul>
						<li><a href="?option=<?php echo COMPONENT_NAME;?>&page=categories"><img src="<?php echo COMPONENT_PATH."images/categories.gif"; ?>" /> Categories</a></li>
						<li><a href="?option=<?php echo COMPONENT_NAME;?>&page=amenities"><img src="<?php echo COMPONENT_PATH."images/featured.gif"; ?>" /> Amenities</a></li>
						<li><a href="?option=<?php echo COMPONENT_NAME;?>&page=featured"><img src="<?php echo COMPONENT_PATH."images/featured.gif"; ?>" /> Featured</a></li>
					</ul>
				</li>
				<li><img src="<?php echo COMPONENT_PATH."images/configuration.gif"; ?>" /> Configuration
					<ul>
						<li><a href="?option=<?php echo COMPONENT_NAME;?>&page=configuration&action=general"><img src="<?php echo COMPONENT_PATH."images/config.gif"; ?>" /> General Configuration</a></li>
						<li><a href="?option=<?php echo COMPONENT_NAME;?>&page=configuration&action=set_letters"><img src="<?php echo COMPONENT_PATH."images/set_letters.png"; ?>" /> Set Letters</a></li>
					</ul>
				</li>
			</ul>
		</div>
	</div> <!-- end for MainContainer -->
</div> <!-- end for Wrapper -->
<script>
print_toolbar("<?php echo $KToolBar->getToolBar();?>");
</script>